package concurrent;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ConCurrentHashMapDemo {

    public static void main(String[] args) {
        ConcurrentHashMap<String,String> currentHashMap = new ConcurrentHashMap<>();
        Map<String,String> hashMap = new HashMap<>();

        currentHashMap.put("a","a");
        currentHashMap.put("a","b");
        int size = currentHashMap.size();
        long mappingCount = currentHashMap.mappingCount();
        boolean a = currentHashMap.containsKey("a");
        hashMap.size();
        System.out.println(currentHashMap.get("a"));
    }
}
